//
//  UIViewController+RSCameraOrLibraryOrLibrary.h
//  RSSceneEvidenceTest
//
//  Created by thinkjoy on 2017/8/21.
//  Copyright © 2017年 杜瑞胜. All rights reserved.
//

#import <UIKit/UIKit.h>

static NSString const * RSCameraOrLibraryFileType   =   @"RSCameraOrLibraryFileType";
static NSString const * RSCameraOrLibraryFileDate   =   @"RSCameraOrLibraryFileDate";

static NSString const * RSCameraOrLibraryImage      =   @"RSCameraOrLibraryImage";
static NSString const * RSCameraOrLibraryImageName  =   @"RSCameraOrLibraryImageName";

static NSString const * RSCameraOrLibraryVideoName  =   @"RSCameraOrLibraryVideoName";
static NSString const * RSCameraOrLibraryVideoPath  =   @"RSCameraOrLibraryVideoPath";

typedef void(^CameraOrLibraryBlock)(NSDictionary * infoDic);

typedef enum : NSUInteger {
    /**
     * 使用相薄中图片
     */
    RSCameraOrLibraryType_LibraryPhoto    =   1<<0,
    /**
     * 使用相薄中的视频
     */
    RSCameraOrLibraryType_LibraryVideo    =   1<<1,
    /**
     * 使用相机拍照
     */
    RSCameraOrLibraryType_CameraPhoto =   1<<2,
    /**
     * 使用相机录像
     */
    RSCameraOrLibraryType_CameraVideo =   1<<3,
} RSCameraOrLibraryType;

@interface UIViewController (RSCameraOrLibraryOrLibrary)

#pragma mark    - 使用相机|相册 拍摄|选择 一张|段 图片|视频
/**
 使用相机|相册 拍摄|选择 一张|段 图片|视频
 
 @param edit 拍摄|选择 的图片是否剪切
 @param isSave 拍摄 的图片|视频是否保存到相册
 @param type RSCameraOrLibraryType，可多选
 @param block 拍摄|选择后的回调
 */
- (void)showCanEdit:(BOOL)edit saveInLibrary:(BOOL)isSave photoType:(RSCameraOrLibraryType)type  photoInfoBlock:(CameraOrLibraryBlock)block;

@end
